<%= render :partial => 'partials/tab_menu', :object => @sections %>    
<%= render :partial => 'partials/notifications' %>
<%= render :partial => "section", :object => @section %>
<!-- <div class="section">
  <div class="section_heading">
    <div class="section_title">
      <span class="section_title">
        Chose section.
      </span>
    </div>
    <div class="section_control">
    </div>
  </div>
  <div class="section_content">
    <table border="0" cellspacing="5" cellpadding="5">
      <tr>
        <th>Title </th>
        <th>Boards</th>
      </tr>
      <% @sections.each_with_counter do |section, counter| %>
        <tr class="<%= (counter % 2) == 0 ? "odd" : "even" %>_row" id="admin_section_<%= section.id %>">
          <% @section = section %>
          <td><%= in_place_editor_field :section, :title  %></td>
          <td><%=h section.boards.count %></td>
          <td><%= link_to_remote 'Edit', 
                  :url => {:action => 'edit', :id => section.id} ,
                  :update => { :success => "board_pane", :failure => "error" },
                  :method => :get%>
          </td>
          <td><%= link_to_remote 'Destroy', 
                  :url => { :action => "destroy", :id => section.id },
                  :complete => "eval(request.responseText)",
                  :confirm => 'Are you sure?', :method => :post %>
          <%# link_to 'Destroy No Ajax', { :action => 'destroy', :id => section }, :confirm => 'Are you sure?', :method => :post %>
        </tr>
      <% end %>
    </table>
  </div>
</div>



<div id="board_pane"></div> -->
